//
//  YCLoginViewController.m
//  DemoYTX
//
//  Created by 唐可雄 on 16/7/12.
//  Copyright © 2016年 swustyc. All rights reserved.
//

#import "YCLoginViewController.h"

#import "YCApp.h"
#import "YCYTXIMManager.h"

@implementation YCLoginViewController

- (IBAction)loginBtnDidClick:(id)sender {
    [[YCYTXIMManager sharedInstance] loginNormalWithUserID:self.userIDTxtFld.text block:^(ECError *error) {
        if (error.errorCode == ECErrorType_NoError) {
            [YCApp sharedInstance].userID = self.userIDTxtFld.text;
            
            [[UIApplication sharedApplication].delegate window].rootViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"vcNaviMain"];
        }
    }];
}

@end
